﻿#region Imports
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion

namespace Project.Model.Rights
{
    /// <summary>
    /// 功能：角色 实体类
    ///       Role 对象映射表 'rights_Role'
    /// 作者：tanghh
    /// 日期：2010-06-11
    /// </summary>
    [Serializable]
    public class Role
    {
        #region Property Members
        /// <summary>
        /// Id 
        /// </summary>
        public virtual Guid Id { get; set; }

        /// <summary>
        /// Version 版本
        /// </summary>
        public virtual int Version { get; set; }

        /// <summary>
        /// Code 编码
        /// </summary>
        public virtual string Code { get; set; }

        /// <summary>
        /// Name 名称
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// CreateTime 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; }

        /// <summary>
        /// UpdateTime 更新时间
        /// </summary>
        public virtual DateTime UpdateTime { get; set; }

        #endregion

        #region 新增的常量  摘自：Suteki.Shop   测试用，后期用数据库数据替换
        public const int AdministratorId = 1;
        public const int OrderProcessorId = 2;
        public const int CustomerId = 3;
        public const int GuestId = 4;
        #endregion

        /// <summary>
        /// 角色的用户集
        /// </summary>
        public virtual IList<User> Users { get; set; }
    }

}
